package cn.broadsense.biz.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author huangjinshi
 * @description
 * @createDate 2024-09-27 10:16:53
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("app日志")
@TableName("t_app_oper_log")
@Builder
public class AppOperLog implements Serializable {

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("自增主键")
    private Long id;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("操作类型，1：提交，2：上传，3：暂存")
    private Integer businessType;

    @ApiModelProperty("用户ID")
    private Long userId;

    @ApiModelProperty("关联id")
    private Long relationId;

    @ApiModelProperty("模块，0：默认，1：任务，2：信息")
    private Integer relationModule;

    @ApiModelProperty("关联内容")
    private String relationContent;

    @ApiModelProperty("操作地址")
    private String operIp;

    @ApiModelProperty("操作地点")
    private String operLocation;

    @ApiModelProperty("创建时间")
    private Date operTime;

    @ApiModelProperty("开始时间")
    @TableField(exist = false)
    private Date startTime;

    @ApiModelProperty("结束时间")
    @TableField(exist = false)
    private Date endTime;


}
